import { DEFAULT_LAYOUT } from '../base';
import { AppRouteRecordRaw } from '../types';

const DASHBOARD: AppRouteRecordRaw = {
  path: '/product',
  name: 'product',
  component: DEFAULT_LAYOUT,
  meta: {
    locale: 'menu.product.control',
    requiresAuth: true,
    icon: 'icon-common',
    order: 5,
  },
  children: [
    {
      path: 'productControl',
      name: 'productControl',
      component: () => import('@/views/product/index.vue'),
      meta: {
        locale: 'menu.product.control',
        requiresAuth: true,
        customIcon: true,
        icon: 'icon-product',
        roles: ['admin'],
      },
    },
  ],
};

export default DASHBOARD;
